package lesson01;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

public class Demo0108 {
    public static void main(String[] args) throws IOException {
        File file=new File("./TestWriter.txt");
        FileWriter fileWriter=new FileWriter(file);
        fileWriter.write("我是被写入\n的字符");
        fileWriter.flush();
        fileWriter.close();
    }
}
